home *** CD-ROM | disk | FTP | other *** search
Text File | 1985-08-11 | 10.5 KB | 448 lines | [TEXT/Anon] |
-
- MAC.68K
-
-
-
- OPTION OPTION OPTION
-
-
-
- PURPOSE To set or change assembly options.
-
-
-
- FORMAT OPTION opt1,opt2,...opt3
-
-
-
- DESCRIPTION OPTION is an initialization directive. It must
- appear after the IDENT card but before any
- noninitialization operation codes. The option
- parameters are separated by commas, and are processed
- left to right.
-
- All listed options change the standard MAC.68K
- options. The inverse options are provided for use with
- customized versions.
-
- Option Description
- (Inverse Option)
-
- CREF Generate symbol cross references by page and line
- (NOCREF) number. Automatically forces SYMBOL option.
-
- LABELS Allow symbol names longer than eight characters,
- with only the first eight being significant.
-
- NOLIST Disable program listing. Overrides any LIST L cards.
-
- NOOBJ Do not generate an object file.
-
- NOPAGE Do not generate page headings on the output file.
-
- NOPAWS Do not pause for keyboard input on a console page
- full.
-
- SAM Use SAM opcode and operand syntax. (Appendix D & E).
-
- SEQ List sequence numbers on the output file.
- (NOSEQ)
-
- SEQNAM List source line sequence names on the output file.
-
- SUBTTL Insert subtitle lines on the output file.
-
- SYMBOLS List the symbol table on the output file.
-
-
-
-
-
-
-
- MAC.68K -52-
- MAC.68K
-
-
- LOWER Treat lower case alphabetic characters as unique
- (UPPER) characters within symbol names.
-
- WRAP Use two lines to list an 80+ character output line
- (NOWRAP) to an 80 column output device.
-
- REL Generate a .O reloactable file.
- (68K)
-
-
-
- EXAMPLE OPTION UPPER,CREF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -53- MAC.68K
- MAC.68K
-
-
- ORG ORG ORG
-
-
-
- PURPOSE To reset the origin counter.
-
-
-
- FORMAT ORG expression
-
-
-
- DESCRIPTION The origin counter controls where the assembled
- instructions and data are to be stored in the object
- file. The origin counter starts at the load address
- for .68K object files and is automatically advanced
- for each instruction or data field. A programmer
- ordinarily does not need to change this value. Any
- symbols used in the expression must be previously
- defined.
-
- The origin counter may be set forward or backward.
- It may not be set below the load address (see IDENT).
- Caution should be used in setting the counter backward
- as you may inadvertently overlay (and lose) previously
- generated code.
-
- The current value of the origin counter may be
- referenced by using *O. ORG also sets the location
- counter to the new origin address.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MAC.68K -54-
- MAC.68K
-
-
- PAGE PAGE PAGE
-
-
- PURPOSE To advance to the next page on the output list file.
-
- To change listing page length and/or page width.
-
-
- FORMAT PAGE length,width
-
- subhead PAGE
-
-
- DESCRIPTION PAGE forces a new page on the list device. The sub
- heading in page heading line 2 is reset with the
- subhead value. Note that a null field blanks out the
- current subhead value.
-
- The PAGE is ignored if it is in a block of code
- that is not being listed: e.g., if it appears in a
- macro then macro expansion listing must be enabled for
- the new page to take effect.
-
- When used as an initialization directive, PAGE can
- set the output line width within a range of 80 to 132,
- and or set the output page length within a range of 14
- to 80.
-
-
- EXAMPLE PAGE ,132
-
-
-
-
- PURGE PURGE PURGE
-
-
- PURPOSE To remove a macro definition.
-
-
- FORMAT PURGE macroname
-
-
- DESCRIPTION PURGE logically deletes an operation code, a pseudo
- operation code, or a macro name. An attempt to
- redefine a macro without first using PURGE results in
- a warning in the form of a source line error code type
- 3. Note that this is a warning only, and that the
- second definition is valid.
-
-
- EXAMPLE PURGE TESTMAC
-
-
-
-
-
-
- -55- MAC.68K
- MAC.68K
-
-
- QUAL QUAL QUAL
-
-
-
- PURPOSE To change the default symbol qualifier.
-
-
-
- FORMAT QUAL qualname
-
- strname QUAL qualname
-
- QUAL *
-
-
-
- DESCRIPTION Symbol names are by default unqualified and may be
- referenced globally simply by using their name. QUAL
- establishes for a block of code a qualname by which
- all symbols within the QUAL block are qualified.
- Outside of this block the qualified symbols are
- referenced by using /qualname/symbol. Within the
- block the qualified symbol names can be used without
- the /qualname/ prefix. A symbol referenced within the
- block is first sought in the list of names with the
- same qualifier and then among the global symbol names.
- To force a reference to a global symbol from within a
- QUAL block use // (the global symbol qualifier) before
- the symbol name. E.g., //symbol.
-
- Up to 25 unique QUAL names may be used within one
- assembly, and a 20 deep stack is used to store the
- previous qualname whenever a QUAL appears. This
- allows sections of code using QUALs to be nested
- without any one section having to be aware of the
- order or names of the prior QUALs. At the end of each
- section, a QUAL * restores the prior QUAL level. The
- optional strname in the location field of a QUAL is a
- string name that is assigned the value of the qualname
- in effect at the time of the QAUL.
-
-
-
- EXAMPLES
- QUAL RECORDA
- LOC 0
- STATE DS 1
- SALES DS.L 1
- ITEMS DS.B //NITEMS
- LOC *O
- QUAL *
-
- LEA BUFFER(PC),A1
- :
- MOVE.L /RECORDA/SALES(A1),D1
-
-
-
- MAC.68K -56-
- MAC.68K
-
-
- SECTION SECTION SECTION
-
-
- PURPOSE To change the assembly to another segment.
-
-
- FORMAT SECTION section number
-
-
- DESCRIPTION SECTION changes the assembly to another segment.
- Three values are allowed for the section number.
- Section zero is the TEXT segment, section 14 is the
- DATA segment, and section 15 is the BSS segment.
- SECTION is an alternate form of the TEXT, DATA, or BSS
- op codes.
-
-
- EXAMPLE SECTION #14
-
-
-
-
-
-
-
- SEG SEG SEG
-
-
- PURPOSE To write out the current object file buffer.
-
-
- FORMAT SEG
-
-
- DESCRIPTION SEG is only allowed when generating a .68K object
- file that does not contain any DATA or BSS sections.
- It is designed to allow very large assemblies on small
- memory machines. SEG writes out any accumulated
- object data and resets the internal buffer pointers.
- This reduces the pass two table space requirements
- (see section VIII.) for object file space.
-
- You may not ORG backwards past a SEG address.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -57- MAC.68K
- MAC.68K
-
-
- SET SET SET
-
-
-
- PURPOSE To define or change the value of a redefinable
- symbol.
-
-
-
- FORMAT symbol SET expression
-
-
-
- DESCRIPTION SET defines a new value for its location field
- symbol. SET may only change the value of symbols
- defined by SET, MAX, MIN or STRLEN. Any symbol used
- in the expression must be previously defined. If an
- error is detected the symbol retains its previous
- value (if any).
-
-
-
- EXAMPLE ENTRIES SET 1
- ENTRIES SET ENTRIES+1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MAC.68K -58-RIES+1
-
-
-
-
-
-
-
-
-
-
-
-
-